package service;

import model.DTO.OrderPaymentDTO;
import model.VO.OrderBackVO;
import model.VO.OrderVO;
import model.entity.Order;

import java.util.List;

public interface OrderService {
    //取消订单
    void cancel(int id,String cancelReason);
    //完成订单
    void complete(int id);
    //创建订单
    OrderBackVO order(float amount,int payMethod,String remark,int type);
    //订单分页查询
    List<Order> page(int page, int pageSize, String status, String number, String orderTime);
    //获取订单详情
    OrderVO getInfo(int id);
    //修改订单状态为取餐
    void pickMeal(int id);
    //订单支付
    void payment(OrderPaymentDTO orderPaymentDTO);
    //查询历史订单
    List<OrderVO> list(String status);
    //再下一单
    void repetiton(int id);
    //商家是否同意退款
    void refund(int id,int isAgree);
}
